package com.kady.entity;

import java.sql.Date;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/3/23
 * \* Time: 17:13
 * \* 千峰JAVA2101班
 * \* Description: 用户实例
 * \
 */
public class User {
    private int user_id;
    private String username;
    private String password;
    private String nick_name;
    private byte gender;
    private String phone;
    private String email;
    private Date user_create_time;
    private Date user_update_time;
    private byte is_admin;
    private byte user_status;
    private byte is_delete;
    private byte is_vip;

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public User(String username, String password, String nick_name, byte gender, String phone, String email, Date user_create_time, byte is_vip,byte is_admin) {
        this.username = username;
        this.password = password;
        this.nick_name = nick_name;
        this.gender = gender;
        this.phone = phone;
        this.email = email;
        this.user_create_time = user_create_time;
        this.is_vip = is_vip;
        this.is_admin = is_admin;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }

    public byte getGender() {
        return gender;
    }

    public void setGender(byte gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getUser_create_time() {
        return user_create_time;
    }

    public void setUser_create_time(Date user_create_time) {
        this.user_create_time = user_create_time;
    }

    public Date getUser_update_time() {
        return user_update_time;
    }

    public void setUser_update_time(Date user_update_time) {
        this.user_update_time = user_update_time;
    }

    public byte getIs_admin() {
        return is_admin;
    }

    public void setIs_admin(byte is_admin) {
        this.is_admin = is_admin;
    }

    public byte getUser_status() {
        return user_status;
    }

    public void setUser_status(byte user_status) {
        this.user_status = user_status;
    }

    public byte getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(byte is_delete) {
        this.is_delete = is_delete;
    }

    public byte getIs_vip() {
        return is_vip;
    }

    public void setIs_vip(byte is_vip) {
        this.is_vip = is_vip;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id=" + user_id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nick_name='" + nick_name + '\'' +
                ", gender=" + gender +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", user_create_time=" + user_create_time +
                ", user_update_time=" + user_update_time +
                ", is_admin=" + is_admin +
                ", user_status=" + user_status +
                ", is_delete=" + is_delete +
                ", is_vip=" + is_vip +
                '}';
    }
}
